import React, { Component } from 'react'
import './index.css';
import {Route, Switch, NavLink} from 'react-router-dom';
import QQHome from '../../pages/QQHome';
import MineMusic from '../../pages/MineMusic';

export default class QQMusic extends Component {
    render() {
        return (
            <div className="qq-container">
                <header>
                    <NavLink to="/home">音乐馆</NavLink>
                    <NavLink to="/mine-music">我的音乐</NavLink>
                </header>

                <header>
                    <Switch>
                        <Route path="/home" component={QQHome} />
                        <Route path="/mine-music" component={MineMusic} />
                    </Switch>
                </header>
            </div>
        )
    }
}
